<div class='form'>
  <% form_for @photo,:html=>{:multipart=>true} do |f| %>
    <%= f.error_messages %>
    <p>
      <label for="photo─url">图片</label>
      <%= file_column_field "photo", "url" %>
    </p>

    <p>
      <label for="photo_remark">描述</label>
      <%= f.text_area :remark,:cols=>25,:rows=>4 %>
    </p>

    <p>
      <%= f.submit button_name,:class=>'submit' %>
    </p>
  <% end %>
</div>